import DrillingDetail from './components/DrillingDetail'
import DrillingForm from './components/DrillingForm'

import ProfileDetail from './components/ProfileDetail'
import ProfileForm from './components/ProfileForm'

import PlaneDetail from './components/PlaneDetail'
import PlaneForm from './components/PlaneForm'

import ModelDetail from './components/ModelDetail'
import ModelForm from './components/ModelForm'

import TextDetail from './components/TextDetail'
import TextForm from './components/TextForm'


//接口
import { getAllDrillings, getAllProfiles, getAllPlanes, getAllReport, getDetailGeological,getDetailpolygonDetail,getDetailProfile, getAllModels } from "@/api/geological";
// 绘制函数

import DxCommonUtils from "@/utils/cesiumDxUtils/common3D";
import data from '../pdf/content'


const DataOptions = {
    drilling: [ ],
    profile: [ ],
    plane: [ ],
    model: [  ],
    text: [  ],
    fieldlabel: {
        drilling: {
            zhName: '钻孔数据',
            usName: 'drilling',
            total: 60,
            components: {
                detial: DrillingDetail,
                form: DrillingForm
            },
            listData: getAllDrillings,  // 数据列表
            detailData: getDetailGeological, // 数据详情
            handleDrawEntities: DxCommonUtils.handleBatchTurnHole
        },
        profile: {
            zhName: '剖面数据',
            usName: 'profile',
            total: 70,
            components: {
                detial: ProfileDetail,
                form: ProfileForm
            },
            listData: getAllProfiles,// 数据列表
            detailData: getDetailProfile, // 数据详情
            handleDrawEntities: DxCommonUtils.handleDrawProfile
        },
        plane: {
            zhName: '平面数据',
            usName: 'plane',
            total: 70,
            components: {
                detial: PlaneDetail,
                form: PlaneForm
            },
            listData: getAllPlanes,// 数据列表
            detailData: getDetailpolygonDetail, // 数据详情
            handleDrawEntities: DxCommonUtils.handleDrawPlane
        },
        model: {
            zhName: '模型数据',
            usName: 'model',
            total: 70,
            components: {
                detial: ModelDetail,
                form: ModelForm
            },
            listData: getAllModels,// 数据列表
            handleDrawEntities: ''
        },
        text: {
            zhName: '文字报告',
            usName: 'text',
            total: 70,
            components: {
                detial: TextDetail,
                form: TextForm
            },
            listData: getAllReport,  // 数据列表
            handleDrawEntities: () => { }
        },
    },
    fieldMenuLits: [
        {
            id: 1,
            name: "钻孔数据",
            type: "drilling",
            icon: "dx-yingyong2",
            bc: "#2E8B57",
        },
        {
            id: 2,
            name: "剖面数据",
            type: "profile",
            icon: "dx-yingyong4",
            bc: "#8E388E",
        },
        {
            id: 3,
            name: "平面数据",
            type: "plane",
            icon: "dx-yingyong5",
            bc: "#B03060",
        },
        {
            id: 4,
            name: "模型数据",
            type: "model",
            icon: "dx-yingyong6",
            bc: "#CD3278",
        },
        {
            id: 5,
            name: "文字报告",
            type: "text",
            icon: "dx-yingyong7",
            bc: "#8B5A2B",
        },
    ]
}

export default DataOptions